﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace BusStopDataAccess
{
    /// <summary>
    /// The root of all schedule information
    /// </summary>
    [System.Diagnostics.Contracts.ContractVerification(false)]
    public partial class scheduleInfo 
    { }

    /// <summary>
    /// A Bus stop for one or more routes
    /// </summary>
    [System.Diagnostics.Contracts.ContractVerification(false)]
    public partial class BusStops
    {
        public override string ToString()
        {
            return Code + " " + Name;
        }
    }

    /// <summary>
    /// The time instances when a bus leaves a bus stop
    /// </summary>
    [System.Diagnostics.Contracts.ContractVerification(false)]
    public partial class Departures
    {
        public override string ToString()
        {
            return Time.ToString();
        }
    }

    /// <summary>
    /// The routes that busses will take
    /// </summary>
    [System.Diagnostics.Contracts.ContractVerification(false)]
    public partial class Routes
    {
        public override string ToString()
        {
            return Code + " " + Name;
        }
    }

    /// <summary>
    /// A grouping of routes by date
    /// </summary>
    [System.Diagnostics.Contracts.ContractVerification(false)]
    public partial class Service
    {
        public override string ToString()
        {
            return this.Name;
        }
    }

    /// <summary>
    /// The days that a particular service will be running
    /// </summary>
    [System.Diagnostics.Contracts.ContractVerification(false)]
    public partial class ServiceDates
    {
        public override string ToString()
        {
            return this.Date.ToString() ;
        }
    }
}